package com.movie.modules.jf.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.movie.common.utils.PageUtils;
import com.movie.common.utils.Query;

import com.movie.modules.jf.dao.ImageResourceDao;
import com.movie.modules.jf.entity.ImageResourceEntity;
import com.movie.modules.jf.service.ImageResourceService;
import org.springframework.transaction.annotation.Transactional;


@Service("imageResourceService")
@Transactional
public class ImageResourceServiceImpl extends ServiceImpl<ImageResourceDao, ImageResourceEntity> implements ImageResourceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ImageResourceEntity> page = this.page(
                new Query<ImageResourceEntity>().getPage(params),
                new QueryWrapper<ImageResourceEntity>()
        );

        return new PageUtils(page);
    }

}